package com.haredot.mapper;

import com.haredot.entity.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Teacher record);

    Teacher selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Teacher record);

    List<Teacher> findAll();

    void batchRemove(List<Long> ids);

    Map<String, Integer> queryStudentAndTeacherCount();

    List<Map<String, Integer>> queryCourseAndStuCount();

    List<Map<String, Integer>> queryMajorAndStuCount();

    int updatePassword(Teacher teacher);
}